RecordSource = "SELECT * FROM Publishers ORDER BY Name"
Top = 120
Visible = 0 'False
Width = 1980
End
Begin VB.CommandButton cmdDone
Caption = "Do&ne"
Height = 375
Left = 3240
TabIndex = 18
TabStop = 0 'False
Top = 4680
Width = 1215
End
Begin VB.CommandButton cmdDelete
Caption = "&Delete"
Height = 375
Left = 1680
TabIndex = 17
TabStop = 0 'False
Top = 4680
Width = 1215
End
Begin VB.CommandButton cmdEdit
Caption = "&Edit"
Height = 375
Left = 120
TabIndex = 16
TabStop = 0 'False
Top = 4200
Width = 1215
End
Begin VB.CommandButton cmdCancel
Caption = "&Cancel"
Height = 375
Left = 3240
TabIndex = 15
TabStop = 0 'False
Top = 4200
Width = 1215
End
Begin VB.CommandButton cmdSave
Caption = "&Save"
Height = 375
Left = 1680
TabIndex = 14
TabStop = 0 'False
Top = 4200
Width = 1215
End
Begin VB.CommandButton cmdAddNew
Caption = "&Add New"
Height = 375
Left = 120
TabIndex = 13
TabStop = 0 'False
Top = 4680
Width = 1215
End
Begin VB.CommandButton cmdNext
Caption = "Next =>"
Height = 255
Left = 2520
TabIndex = 12
TabStop = 0 'False
Top = 3840
Width = 1215
End
Begin VB.CommandButton cmdPrevious
Caption = "<= Previous"
Height = 255
Left = 1080
TabIndex = 11
TabStop = 0 'False
Top = 3840
Width = 1215
End
Begin VB.TextBox txtInput
DataField = "PubID"
DataSource = "datPublishers"
Height = 285
Index = 0
Left = 1320
Locked = -1 'True
TabIndex = 10
TabStop = 0 'False
Text = "Text1"
Top = 120
Width = 1215
End
Begin VB.Label Label1
Caption = "Comments"
Height = 255
Index = 9
Left = 120
TabIndex = 28
Top = 3360
Width = 1215
End
Begin VB.Label Label1
Caption = "FAX"
Height = 255
Index = 8
Left = 120
TabIndex = 27
Top = 3000
Width = 1215
End
Begin VB.Label Label1
Caption = "Telephone"
Height = 255
Index = 7
Left = 120
TabIndex = 26
Top = 2640
Width = 1215
End
Begin VB.Label Label1
Caption = "Zip"
Height = 255
Index = 6
Left = 120
TabIndex = 25
Top = 2280
Width = 1215
End
Begin VB.Label Label1
Caption = "State"
Height = 255
Index = 5
Left = 120
TabIndex = 24
Top = 1920
Width = 1215
End
Begin VB.Label Label1
Caption = "City"
Height = 255
Index = 4
Left = 120
TabIndex = 23
Top = 1560
Width = 1215
End
Begin VB.Label Label1
Caption = "Address"
Height = 255
Index = 3
Left = 120
TabIndex = 22
Top = 1200
Width = 1215
End
Begin VB.Label Label1
Caption = "Company Name"
Height = 255
Index = 2
Left = 120
TabIndex = 21
Top = 840
Width = 1215
End
Begin VB.Label Label1
Caption = "Name"
Height = 255
Index = 1
Left = 120
TabIndex = 20
Top = 480
Width = 1215
End
Begin VB.Label Label1
Caption = "Publisher ID"
Height = 255
Index = 0
Left = 120
TabIndex = 0
Top = 120
Width = 1215
End
Attribute VB_Name = "frmPublishers"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Declare Function WinHelp Lib "user32" Alias "WinHelpA" (ByVal hwnd As Long, ByVal lpHelpFile As String, ByVal wCommand As Long, ByVal dwData As Long) As Long
Private Const HELP_FINDER = &HB&
Private Sub ValidateData(AllOK As Boolean)
Dim Message As String
AllOK = True
'Check for name
If Len(txtInput(1).Text) = 0 Then
Message = "You must enter a Publisher Name." & vbCrLf & Message